package com.chaodev.base.model.wenjuan;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * vcbase
 *
 * @author 95634
 * @描述
 * @date 2023/5/23 15:38
 **/
@ApiModel(value="问卷对应问题表", description="问卷对应问题表")
public class PaperQuestion implements Serializable {
    private static final long serialVersionUID = 201611640433236211L;
    @ApiModelProperty(value = "自增ID")
    private Integer id;

    @ApiModelProperty(value = "试卷编号")
    private Integer paperId;

    @ApiModelProperty(value = "问题编号")
    private Integer questionId;

    @ApiModelProperty(value = "状态0:失效,1:有效")
    private Integer state;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(locale="zh",timezone="GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String dsc;

    @ApiModelProperty(value = "区号")
    private String areaCode;

    private Integer tId;

    @ApiModelProperty(value = "分数")
    private BigDecimal tScore;

    @ApiModelProperty(value = "排序")
    private Integer ttSort;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getPaperId() {
        return paperId;
    }

    public void setPaperId(Integer paperId) {
        this.paperId = paperId;
    }
    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getDsc() {
        return dsc;
    }

    public void setDsc(String dsc) {
        this.dsc = dsc;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }
    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }
    public BigDecimal gettScore() {
        return tScore;
    }

    public void settScore(BigDecimal tScore) {
        this.tScore = tScore;
    }
    public Integer getTtSort() {
        return ttSort;
    }

    public void setTtSort(Integer ttSort) {
        this.ttSort = ttSort;
    }

    @Override
    public String toString() {
        return "TPaperQuestion{" +
                "id=" + id +
                ", paperId=" + paperId +
                ", questionId=" + questionId +
                ", state=" + state +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", dsc=" + dsc +
                ", areaCode=" + areaCode +
                ", tId=" + tId +
                ", tScore=" + tScore +
                ", ttSort=" + ttSort +
                "}";
    }
}
